package com.libl.service.impl;

import com.libl.mapper.StatMapper;
import com.libl.service.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatServiceImpl implements StatService {
    @Autowired
    StatMapper statMapper;

    @Override
    public List<String> findUserDay() {
        return statMapper.findUserDay();
    }

    @Override
    public Integer findUsersByDay(String day) {
        return statMapper.findUsersByDay(day);
    }

    @Override
    public List<String> findOrderDay() {
        return statMapper.findOrderDay();
    }

    @Override
    public List<Integer> findOrdersByDay(String day) {
        return statMapper.findOrdersByDay(day);
    }

    @Override
    public List<Integer> findCustomersByDay(String day) {
        return statMapper.findCustomersByDay(day);
    }

    @Override
    public List<Double> findAmountByDay(String day) {
        return statMapper.findAmountByDay(day);
    }

    @Override
    public List<Double> findPcrByDay(String day) {
        return statMapper.findPcrByDay(day);
    }

    @Override
    public List<String> findGoodsDay() {
        return statMapper.findGoodsDay();
    }

    @Override
    public List<Integer> findOrderByDay(String day) {
        return statMapper.findOrderByDay(day);
    }

    @Override
    public List<Integer> findProductByDay(String day) {
        return statMapper.findProductByDay(day);
    }

    @Override
    public List<Double> findAmountsByDay(String day) {
        return statMapper.findAmountsByDay(day) ;
    }

}
